﻿namespace OnDash.Windowing.Common;

public readonly struct MonitorHandle
{
    public IntPtr Pointer { get; }

    public MonitorHandle(IntPtr ptr)
    {
        Pointer = ptr;
    }


    public unsafe T* ToUnsafePtr<T>() where T : unmanaged
        => (T*)Pointer;
}